home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection Student Program / ADC Tools Sampler CD Disk 3 1999.iso / Metrowerks CodeWarrior / Java Support / Java_Source / IFC_112 / netscape / application / ApplicationObserver.java < prev    next >
Encoding:
Text File  |  1999-05-28  |  1.7 KB  |  51 lines  |  [TEXT/CWIE]

  1. // ApplicationObserver.java
  2. // By Ned Etcode
  3. // Copyright 1996, 1997 Netscape Communications Corp.  All rights reserved.
  4.  
  5. package netscape.application;
  6.  
  7. /** Interface implemented by objects interested in receiving notifications
  8.   * when the Application changes state.
  9.   * @note 1.0 added notifications when focus changes and when
  10.   *           current document changes
  11.   */
  12. public interface ApplicationObserver {
  13.  
  14.  
  15.  
  16.     /** Informs the observer that the application's EventLoop has just started
  17.       * running.
  18.       */
  19.     public void applicationDidStart(Application application);
  20.  
  21.     /** Informs the observer that the application's EventLoop has just finished
  22.       * receiving events.
  23.       */
  24.     public void applicationDidStop(Application application);
  25.  
  26.     /** Informs the observer that the application's focused view has changed.
  27.       * If <b>focusedView</b> is null, the application no longer has a focused
  28.       * view.
  29.       *
  30.       */
  31.     public void focusDidChange(Application application, View focusedView);
  32.  
  33.     /** Informs the observer that the application's current document window
  34.       * has changed. If <b>document</b> is null, the application no longer has a
  35.       * current document window.
  36.       *
  37.       */
  38.     public void currentDocumentDidChange(Application application,
  39.                                          Window document);
  40.  
  41.     /** Informs the observer that the Applet that launched the Application
  42.       * is no longer visible.
  43.       */
  44.     public void applicationDidPause(Application application);
  45.  
  46.     /** Informs the observer that the Applet that launched the Application
  47.       * is visible again.
  48.       */
  49.     public void applicationDidResume(Application application);
  50. }
  51.